#include <stdio.h>
#include <string.h>
int main()
{
    char a[20] = "";
    char b[20] = "";
    int s = 0;

    scanf("%s",a);
    scanf("%s",b);

    s = strcmp(a,b);
    printf("a = %s,",a);
    printf("b = %s\n",b);
    printf("s = %d\n",s);
    return 0;
}
